From: Tim Deegan Date: Wed, 6 Apr 2011 10:22:39 +0000 (+0100) Subject: xen: fix non-debug and 32-bit builds after nested HVM series X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=39ddc439596065a02ce4c530be5bcb66fa14c5ae;p=xen.git xen: fix non-debug and 32-bit builds after nested HVM series Signed-off-by: Tim Deegan --- diff --git a/xen/arch/x86/hvm/svm/nestedsvm.c b/xen/arch/x86/hvm/svm/nestedsvm.c index d0ce4ddf24..7c9f2d0bba 100644 --- a/xen/arch/x86/hvm/svm/nestedsvm.c +++ b/xen/arch/x86/hvm/svm/nestedsvm.c @@ -1164,9 +1164,8 @@ nestedsvm_check_intercepts(struct vcpu *v, struct cpu_user_regs *regs, uint64_t exitcode) { bool_t is_intercepted; - struct nestedvcpu *nv = &vcpu_nestedhvm(v); - ASSERT(nv->nv_vmexit_pending == 0); + ASSERT(vcpu_nestedhvm(v).nv_vmexit_pending == 0); is_intercepted = nsvm_vmcb_guest_intercepts_exitcode(v, regs, exitcode); switch (exitcode) { diff --git a/xen/arch/x86/mm/hap/guest_walk.c b/xen/arch/x86/mm/hap/guest_walk.c index 30306fcab7..8bbf9dbf95 100644 --- a/xen/arch/x86/mm/hap/guest_walk.c +++ b/xen/arch/x86/mm/hap/guest_walk.c @@ -122,7 +122,7 @@ unsigned long hap_p2m_ga_to_gfn(GUEST_PAGING_LEVELS)( #else unsigned long hap_gva_to_gfn(GUEST_PAGING_LEVELS)( - struct vcpu *v, unsigned long gva, uint32_t *pfec) + struct vcpu *v, struct p2m_domain *p2m, unsigned long gva, uint32_t *pfec) { gdprintk(XENLOG_ERR, "Guest paging level is greater than host paging level!\n");